package com.jumi.microservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jumi.microservice.domain.Article;
import com.jumi.microservice.domain.dto.ArticleDTO;
import com.jumi.microservice.domain.vo.ArticleOP;
import com.jumi.microservice.domain.vo.ArticleQuery;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface ArticleService extends IService<Article> {
    /**
     * 文章插入一条数据
     * @param op
     * @param request
     */
    void insert(ArticleOP op, HttpServletRequest request);

    /**
     * 编辑一条数据
     * @param op
     * @param request
     */
    void update(ArticleOP op, HttpServletRequest request);

    /**
     * 删除一条数据
     * @param id
     * @param request
     */
    void delete(Long id, HttpServletRequest request);

    /**
     * 状态编辑
     * @param id
     * @param status
     * @param request
     */
    void status(Long id,Integer status,HttpServletRequest request);



    ArticleDTO selectId(Long id);
}
